

package com.hazelcast.internal.nio;

public interface ConnectionLifecycleListener<T extends Connection> {
    /**
     * Deals with cleaning up a closed connection. This method should only be called once by the
     * {@link Connection#close(String, Throwable)} method where it is protected against multiple closes.
     */
    void onConnectionClose(T connection, Throwable t, boolean silent);

}
